﻿#include <core/db/db_manager.h>
#include <logic/player/player_manager.h>
#include <svcbox/svc_box_info_inl.h>
#include <thirdparty/fist-log.h>

#include <ranges>

#include "svc_lobby.h"


CBoxLobby::CBoxLobby()
{
    
}

CBoxLobby::~CBoxLobby()
{
    
}
bool CBoxLobby::Init()
{
    if (!CBoxBase::Init()) {
        return false;
    }

    if (!AddConnect(BOX_TYPE_TRANSMIT)) {
        return false;
    }


    
    return true;
}
void CBoxLobby::Update()
{
    CBoxBase::Update();
}
void CBoxLobby::Destroy()
{
    CBoxBase::Destroy();
}

bool CBoxLobby::CollectManager()
{
    if (!AddComponent(new CPlayerManager())) {
        return false;
    }
    if (!AddComponent(new CDBManager())) {
        return false;
    }
    return true;
}
